-- GENERATED SPELL FOR [Risen Drakkari Bat Rider] --


function spell0_26638(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(50414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26638', 9500, 1)
end

function spell1_26638(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(59009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26638', 9500, 1)
end

function spell2_26638(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(16001,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26638', 9000, 1)
end

function Sorts_26638(pUnit, Event)
local choix_sorts_26638 = math.random(0, 2)
if choix_sorts_26638 == 0 then
pUnit:RegisterEvent('spell0_26638', 1, 1)
end
if choix_sorts_26638 == 1 then
pUnit:RegisterEvent('spell1_26638', 1, 1)
end
if choix_sorts_26638 == 2 then
pUnit:RegisterEvent('spell2_26638', 1, 1)
end
end

function mob26638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26638', math.random(1500, 3000), 1)
end

function mob26638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26638, 1, 'mob26638_Action')
RegisterUnitEvent(26638, 2, 'mob26638_Leave')
RegisterUnitEvent(26638, 3, 'mob26638_Kill')
RegisterUnitEvent(26638, 4, 'mob26638_Die')
